<h1>Listing base_dishes</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Description</th>
    <th>Image</th>
    <th>Price</th>
    <th>Material id list</th>
    <th>Material name list</th>
    <th>Spice id list</th>
    <th>Spice name list</th>
    <th>User level</th>
    <th>Amount</th>
    <th>Ep level1</th>
    <th>Ep level2</th>
    <th>Ep level3</th>
  </tr>

<% for base_dish in @base_dishes %>
  <tr>
    <td><%=h base_dish.name %></td>
    <td><%=h base_dish.description %></td>
    <td><%=h base_dish.image %></td>
    <td><%=h base_dish.price %></td>
    <td><%=h base_dish.material_id_list %></td>
    <td><%=h base_dish.material_name_list %></td>
    <td><%=h base_dish.spice_id_list %></td>
    <td><%=h base_dish.spice_name_list %></td>
    <td><%=h base_dish.user_level %></td>
    <td><%=h base_dish.amount %></td>
    <td><%=h base_dish.ep_level1 %></td>
    <td><%=h base_dish.ep_level2 %></td>
    <td><%=h base_dish.ep_level3 %></td>
    <td><%= link_to 'Show', [:admin, base_dish] %></td>
    <td><%= link_to 'Edit', edit_admin_base_dish_path(base_dish) %></td>
    <td><%= link_to 'Destroy', [:admin, base_dish], :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New base_dish', new_admin_base_dish_path %>
